package com.rsy.crm.workbench.service.Impl;

import com.rsy.crm.util.SqlSessionUtil;
import com.rsy.crm.workbench.dao.CustomerDao;
import com.rsy.crm.workbench.domain.Customer;
import com.rsy.crm.workbench.service.CustomerService;

import java.util.List;

public class CustomerServiceImpl implements CustomerService  {
    private CustomerDao customerDao = SqlSessionUtil.getSqlSession().getMapper(CustomerDao.class);
    /**
     *  取得 客户名称列表（按照客户名称进行模糊查询）
     * @param name
     * @return
     */
    @Override
    public List<String> getCustomerName(String name) {

        List<String> sList = customerDao.getCustomerName(name);

        return sList;
    }
}
